package com.education.dao;

import java.util.List;
import java.util.Map;

import com.education.model.CourseModel;
import com.education.model.Judge;
import com.education.model.QuestionExam;
import com.education.model.QuestionModel2;
import org.apache.ibatis.annotations.Param;

public interface SelectExamDao {
    /**前端页面的分页数据
     * @param
     * @return 分页数据
     * 
     */
    List<QuestionExam> getSelectPage(@Param("questionType") Integer questionType, @Param("searchMessage") String questionName)throws Exception;

    /**
     * 2017/8/7 王娇
     * 查询教师课程章节
     * @return  返回下拉框级联页面数据
     * @throws Exception
     */
    List<QuestionModel2> getCourseSection(Integer teacherId)throws Exception;
    /**
     * @return  添加章节测试题库
     * @return 影响行数
     * @throws Exception
     */
    int addCourseSection(QuestionExam se)throws Exception;
    
    
    /**添加期末测试题
     * @param jcs
     * @return影响行数
     * @throws Exception
     */
    int addExam(QuestionExam se)throws Exception;
    
    
    
    /**添加入学考试
     * @param jcs
     * @return
     * @throws Exception
     */
    int addEnter(QuestionExam se) throws Exception;

    /**课程下拉框前端页面信息
     * @return 返回下拉框
     * @throws Exception
     */
    List<CourseModel> getCourse(Integer teacherId)throws Exception;
    
    
    /**根据id 更新选择题
     * @return 影响行数
     * @throws Exception
     */
    int updateSelect(QuestionExam se)throws Exception;
    
    
    /**根据id 删除对应信息
     * @param jcs
     * @return影响行数
     * @throws Exception
     */
    int deleteSelect(Integer selectId)throws Exception;

    /**
     * Excel导入
     * @return
     * @throws Exception
     */
    int excelUplode(List<QuestionExam> list) throws  Exception;
}
